import cv2
from utils.common import load_image, show_image  # 导入公共函数

# 加载图片
image = load_image()

# 灰度化
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
show_image("Grayscale Image", gray_image)

# 二值化
_, binary_image = cv2.threshold(gray_image, 128, 255, cv2.THRESH_BINARY)
show_image("Binary Image", binary_image)

# 高斯模糊
blurred_image = cv2.GaussianBlur(image, (15, 15), 0)
show_image("Blurred Image", blurred_image)